From: Georges Basile Stavracas Neto Date: Thu, 6 Feb 2020 20:51:18 +0000 (-0300) Subject: authPrompt: Keep buttonWell and cancel button sizes in sync X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~69 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=99e81b32f47a534ffab2c829f6e15c4b96d2f3ca;p=gnome-shell.git authPrompt: Keep buttonWell and cancel button sizes in sync So that the entry is horizontally centralized at all times. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a62e1b13d..974f51778 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -176,6 +176,10 @@ var AuthPrompt = GObject.registerClass({ x_align: Clutter.ActorAlign.END, y_align: Clutter.ActorAlign.CENTER, }); + this._defaultButtonWell.add_constraint(new Clutter.BindConstraint({ + source: this.cancelButton, + coordinate: Clutter.BindCoordinate.SIZE, + })); this._mainBox.add_child(this._defaultButtonWell); this._spinner = new Animation.Spinner(DEFAULT_BUTTON_WELL_ICON_SIZE);